<?php


namespace app\api\controller\v1;


use app\api\service\UserToken;
use app\api\validate\TokenValidate;

class Token
{
    public  function getToken($code = ''){

        (new  TokenValidate());
        $userToken = new UserToken($code);
        $token = $userToken->get();
        return [
            'token' => $token
        ];
    }
}